<div class="header">
    <div class="header_1">
        <div class="header_1_l dis_in">
            <span class="sp1 dis_b">你好，欢迎访问</span>
        </div>
        <div class="header_1_r dis_in">
            <ul class="header_1_r_ul">
            <?php  if(empty($userInfo['uid'])){ ?>
                <li><input type="button" class="top_btn" id="userLogin" value="登录"/></li>
                <li><input type="button" class="top_btn" id="register" value="注册"/></li>
            <?php }else{ ?>
                <li><input type="button" class="top_btn" id="exit" onclick="userLeave()" value="退出"/></li>
            <?php } ?>
                <li><a href="<?php echo url('index/saveDesk')?>"><img src="__PUBLIC__/home/images/icon_dn.png"/>保存桌面</a></li>
            </ul>
        </div>
    </div>
    <div class="header_2">
        <div class="top_left dis_in"><img class="icon_logo " src="__PUBLIC__/home/images/logo.png"/></div>

        <ul class="nav_ul ">
            <?php foreach($typeInfo as $v){?>
            <li class="cursor <?php
                if($v['title'] == '每日牛股') echo 'mr_ng';
            ?>" data-id = "<?php echo $v['column_id']?>" data-type="<?php echo $v['type']?>"><img src="__UPLOAD__/<?php echo $v['column_image']?>"/><?php echo $v['title']?></li>
            <?php } ?>
        </ul>

        <div class="top_right dis_in" id="userId" data-id="<?php echo checkLogin() ? cookie('uid') : $userRand?>" data-type="<?php echo $userInfo['type']?>">
            <!--游客头部-->
            <div class="yk_top_box" style="display:<?php echo empty($userInfo['type']) ? 'block' : 'none';?>;">
                <img class="icon_man dis_in" src="__PUBLIC__/home/images/icon_man.png"/>
                <img class="icon_yk" src="__PUBLIC__/home/images/icon_yk_big.png"/>
                <div class="top_r_r">
                    <p class=" top_p1"><span class="nickname" data-type="tourist"><?php echo !empty($userInfo['nickname']) ? $userInfo['nickname'] : '游客:'.$userRand?></span></p>
                    <p class=" top_p1"><img class="icon_qd cursor" onclick="userSign()" src="__PUBLIC__/home/images/icon_qd-.png"/><span class="qd_sp"><?php echo empty($userInfo['integral']) ? 0 : $userInfo['integral']?> <span>积分</span></span></p>
                </div>
            </div>
            <!--巡官-->
            <div class="yk_top_box" style="display:<?php echo $userInfo['type']==2 ? 'block' : 'none';?>">
                <img class="icon_man dis_in" src="__PUBLIC__/home/images/icon_man.png"/>
                <img class="icon_yk" src="__PUBLIC__/home/images/icon_zl.png"/>
                <div class="top_r_r">
                    <p class=" top_p1 xg_p"><span class="na_sp"><?php echo $userInfo['nickname']?></span></p>
                </div>
            </div>

            <!--会员头部-->
            <div class="yk_top_box" style="display:<?php echo $userInfo['type'] == 3 ? 'block' : 'none';?>;">
                <img class="icon_man dis_in" src="__PUBLIC__/home/images/icon_man.png"/>
                <img class="icon_yk" src="__PUBLIC__/home/images/icon-ngb.png"/>
                <div class="top_r_r vip_top">
                    <p class=" top_p1 mar_top xg_p"><span class="vip_sp nickname" data-type="0"><?php echo $userInfo['nickname'] ?></span></p>
                    <p class=" top_p1 mar_top"><span class="vip_tm"><?php echo $userInfo['validity']?></span>过期 </p>
                    <p class=" top_p1 mar_top xg_jf"><img class="icon_qd cursor" onclick="userSign()" src="__PUBLIC__/home/images/icon_qd-.png"/><span class="qd_sp"><?php echo $userInfo['integral']?> <span>积分</span></span></p>
                </div>
            </div>


        </div>
    </div>
</div>